from PIL import Image as img
im=img.open('logo.png')
r,g,b=im.split()
om=img.merge(mode='RGB',bands=(g,b,r))
om.save('new_logo.png')